package com.zhangdi.dwperms.service;

import com.zhangdi.dwperms.request.LoginRequest;
import com.zhangdi.dwcommons.request.RegisterRequest;
import com.zhangdi.dwcommons.response.Response;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface AccountService {
    Response register(RegisterRequest params);
    Response login(LoginRequest params, HttpServletResponse response);
    void logout(HttpServletRequest request);
}
